import request from '@/utils/request'

// 查询物品信息列表
export function listRyInventory(query) {
  return request({
    url: '/inventory/RyInventory/list',
    method: 'get',
    params: query
  })
}


// 查询所有物品信息列表
export function allRyInventory() {
  return request({
    url: '/inventory/RyInventory/all',
    method: 'get'
  })
}

// 查询物品信息详细
export function getRyInventory(id) {
  return request({
    url: '/inventory/RyInventory/' + id,
    method: 'get'
  })
}

export function getInventoryInFor(specifications){
  return request({
    url:'/inventory/RyInventory/specifications/'+specifications,
    method:'get'
  })
}

// 新增物品信息
export function addRyInventory(data) {
  return request({
    url: '/inventory/RyInventory',
    method: 'post',
    data: data
  })
}

// 修改物品信息
export function updateRyInventory(data) {
  return request({
    url: '/inventory/RyInventory',
    method: 'put',
    data: data
  })
}

// 删除物品信息
export function delRyInventory(id) {
  return request({
    url: '/inventory/RyInventory/' + id,
    method: 'delete'
  })
}
